﻿using Microsoft.Extensions.DependencyInjection;

namespace ESoft.Locking
{
    public static class ServiceCollectionExtensions
    {
        /// <summary>
        /// 配置使用redisLock
        /// </summary>
        /// <param name="services"></param>
        public static void AddRedisLock(this IServiceCollection services)
        {
            services.AddSingleton<IDistributeLock, RedisDistributeLock>();
        }
    }
}
